package com.lifp.constant;

import com.google.common.collect.Sets;

import java.util.*;

/**
 * @Description 用户角色缓存模拟
 * @Author lfp
 * @Date 2023/6/2
 * @Version 1.0
 */
public class UserRoleCacheManager {

    public static final Map<String,Set<String>> USER_ROLE_MAP = new HashMap<>();

    static {
        //模拟用户角色缓存
        USER_ROLE_MAP.put("zhangsan",Sets.newHashSet("admin","user"));
        USER_ROLE_MAP.put("lisi",Sets.newHashSet("user"));
    }
}